package com.hopes.bizz.poll.analy.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * @author yumr
 * @ProjectName bizz
 * @Description 统计报表
 * @time 2023/6/5 16:58
 */
@Data
@Schema(description = "统计报表")
@EqualsAndHashCode(callSuper = false)
public class ReportDTO implements Serializable {

    private static final long serialVersionUID = -7752410601681645937L;

    @NotNull(message = "监测站点不可为空")
    private Long monitorSiteId;

    /**
     * 时间类型  日、月、季度、年
     */
    @NotNull(message = "时间类型不可为空")
    private String dateType;

    @NotNull(message = "选择的时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date reportTime;
    /* 开始时间 */
    private Date beginTime;
    /* 结束时间 */
    private Date endTime;

}
